from source.builders import Check, CheckException

class CMakeCheck( Check ):
  def check(self): 
    try:
      x = self.executeoutput( ['cmake', '--version'] )
      if len(x) > 0:
        return
    except:
      pass
    raise CheckException("Please install CMake. It can be found at:\n http://www.cmake.org/cmake/resources/software.html")


CHECK = CMakeCheck
